<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" errorPage="error/errorpage.jsp"%>
<%@page language="Java" import="java.io.*, java.util.*"%>
<%@page import="beans.BeanLoginAdmin"%>
<jsp:useBean id="mybean" class="beans.BeanLoginAdmin"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!-- VALIDADO :-D -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link rel="stylesheet" href="../estilos/style.css" type="text/css" media="screen" charset="utf-8"/>
  
 <script src ="../ajax/scriptaculous-js-1.8.1/lib/prototype.js" type="text/javascript" charset="utf-8"></script>
 <script src ="../ajax/scriptaculous-js-1.8.1/src/effects.js" type="text/javascript" charset="utf-8"></script>
 <script src="../ajax/ajax_login.js" type="text/javascript" charset="utf-8"></script>
 <script src="../ajax/ajax_utils.js" type="text/javascript" charset="utf-8"></script>
  <script src="../js/menu.js" type="text/javascript" charset="utf-8"></script>
<title>Erasmushelp! - Login</title>
<!--[if IE]> <link href="estilos/style_ie.css" rel="stylesheet" type="text/css"> <![endif]-->

</head>
<body>
<jsp:include page="hidden_admin.jsp"/>
	<div id='page_wrapper'>
	
	<jsp:include page="cabecera_admin.jsp"/>
	
	<div id='content_wrapper'>
	
	<div class='spacer'></div> 
	
	<div id='contenido'>
	
		<div id="wrapper_loginadmin">
			<form action="#" id="formlogin" method="post" onsubmit="return false">
				<div class="formloginadmin">
					<label for="adminuser">Administrador</label>
					<input type="text" id="adminuser" name="adminuser"/>
				</div>
				<div class="formloginadmin">
					<label for="adminpassw">Contrase&ntilde;a</label>
					<input type="password" id="adminpassw" name="adminpassw"/>
				</div>
				<br/>
				<div id="capabotonlogin">
					<button class="mybtn" onmouseover="goLite(this)" onmouseout="goDim(this)"
					onclick="agregaBarraCarga('load');procesaParametrosYRedirige('error_login','formlogin', 'proc_admin.jsp', 'post', 'index_admin.jsp')">
					Login
					</button>
				</div>
			</form>
			
			<div id="load">
			
			</div>
				
			<div id="error_login"></div>
			
		</div>
		<div id="avisoadmin" class="centrado">
			<% 
				if(session.getAttribute("usuario")!=null){%>				
					<p style="text-indent:7em">Actualmente tiene una sesi&oacute;n iniciada como <%=session.getAttribute("usuario")%>.</p>
					<ul id="opcadminsession">
						<li>Continuar la sesi&oacute;n en la <a href="index_admin.jsp">p&aacute;gina de inicio de administrador</a>.</li>
						<li>Abandonar la sesi&oacute;n y volver a la <a href="#" onclick="cerrarSesionAdmin('<%=session.getId()%>')">p&aacute;gina de inicio</a>.</li>
					</ul>
				
			<%	}
			%>
	
	<div class='spacer'></div>
	
	</div>
	</div>
	</div>
	<jsp:include page="pie.html"/>
	
	</div>
	
	</body>
	
	</html>
